<?php

/*
 * Copyright (C) Error: on line 4, column 33 in Templates/Licenses/license-gpl30.txt
  The string doesn't match the expected date/time format. The string to parse was: "7.7.2014". The expected format was: "MMM d, yyyy". CZDP01
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

require './basicconfig.php';
require './system/autoloader.php';
require './function/dump.php';

//dump(serialize(array('title'=>0, 'header'=>0, 'navigation'=>0, 'info'=>0, 'userinfo'=>0, 'contents'=>0, 'aside'=>0, 'footer'=>0)));

//$a = array('title'=>false, 'header'=>false, 'navigation'=>false, 'info'=>false, 'userinfo'=>false, 'contents'=>false, 'aside'=>false, 'footer'=>false);
//$b = array('title'=>'lframework', 'header'=>'lframework | test', 'navigation'=>'navigace mino provoz!', 'info'=>'dnes je 8. 7. 2014', 'userinfo'=>'(I) vše v pořádku...', 'contents'=>'fsdfsjdnfj nfsdjfnj sdfjsdf jsdjdfjfhujfifjije se  seifjisejf jsefseif jsief isejfse fsefjisei jfso', 'aside'=>'administrace', 'footer'=>'\|€đĐ[]łŁ$$ß#&@{}<>*QWE12345řččšěě', 'bside'=>'ffffffff');
//dump(array_combine($a,$b));

//$info = unserialize(file_get_contents('./template/home/home.tcfg'));
//list($b['title'], $b['header'], $b['navigation'], $b['info'], $b['userinfo'], $b['contents'], $b['aside'], $b['footer']) = $info;
//
//dump($info);

$autoloader = new system\autoloader();

$router = new system\router();

//$route = $router->getroute();

$core = new system\core($router->getroute());
$core->application_create();
$core->application_run();

$core->application_render();